/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-08-19 18:02:37
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-19 22:09:55
 */
import 'package:flutter/material.dart';
import 'package:flutter_data_center/components/animation_text.dart';
import 'package:flutter_data_center/utills/color_utils.dart';

class Countitem extends StatelessWidget {
  const Countitem({Key key, this.dotColor, this.count, this.label})
      : super(key: key);
  final Color dotColor;
  final int count;
  final String label;

  @override
  Widget build(BuildContext context) => Column(
        mainAxisSize: MainAxisSize.min,
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          AnimText(
            number: count,
            style: TextStyle(
              fontSize: 18,
              fontWeight: FontWeight.w700,
              color: gColor("#FF0606"),
            ),
          ),
          SizedBox(height: 6),
          Row(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Container(
                width: 8,
                height: 8,
                decoration: BoxDecoration(
                  shape: BoxShape.circle,
                  color: dotColor,
                ),
              ),
              SizedBox(width: 5),
              Text(
                "监控",
                style: TextStyle(
                  fontSize: 12,
                  color: gColor("#D03329"),
                ),
              ),
            ],
          ),
        ],
      );
}
